14. Exercise: Create a New Style
Create New Styles
In this exercise, you'll create and apply new styles to add consistency to TextViews in this app.
Exercise Code
Exercise: T12.02-Exercise-CreateNewStyles
SOLUTION:
- Change the color to colorPrimaryLight for the ActivityLabelStyle
- Create a style for the mail folder text views (named “folderStyle”) that contains all of the repeated properties like text color and size in the style layout
- Apply that style to each view and delete the redundant properties
- Create a style for the inbox text view that inherits from folderStyle, and includes a bold textStyle property
- Apply that inboxStyle to the inbox text view